package com.study.创造型模式.工厂模式.抽象工厂模式.生产者;


public class LDFactory implements AbsFactory{
    @Override
    public Pizza createPizza(String orderType) {
         Pizza pizza =null;
            if (orderType.equals("cheese")){
                pizza = new LDCheesePizza();
            }else if (orderType.equals("pepper")) {
                pizza = new LDPepperPizza();
            }

        return pizza;
    }
}
